/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/**
 *
 * @author danilo
 */
public class Fabrica {
    
   
		private static String url="jdbc:mysql://localhost/pessoa";
		private static String user="root";
		private static String senha="";
		
		//fim das vari?veis e in?cio dos construtores
		
		//In?cio dos m?todos
		public static Connection getConnection(){
			try{
				return DriverManager.getConnection(url,user,senha);
			}
			catch(SQLException e){
				System.out.println("Falha na conex?o!");
				throw new RuntimeException(e);
			}
		}

    
   


}

    

